package com.vueperson.vueperson.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {


    @GetMapping("/hello")
    @ResponseBody
    public String hello(){
        return "Hello";
    }

    @GetMapping("/admin/hello")
    @ResponseBody
    public String admin(){
        return "Hello admin";
    }

    @GetMapping("/user/hello")
    @ResponseBody
    public String user(){
        return "Hello user";
    }

    @GetMapping("/db/hello")
    @ResponseBody
    public String dba(){
        return "Hello dba";
    }


}
